<?php

namespace App\Models;

use DateTimeInterface;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class MeetPerson
 * *
 * @property $id  自增ID
 * @property $name  姓名
 * @property $sex  性别 0:未知 1:男 2:女
 * @property $phone  手机号码
 * @property $paper_type  证件类型
 * @property $paper  证件号码
 * @property $add_uid  添加者uid
 * @property $created_at  
 * @property $updated_at  
 * @property $deleted_at  
 *
 * @package  App\Models
 * @mixin \Illuminate\Database\Eloquent\Builder
 */
class MeetPerson extends Model 
{
    use SoftDeletes;

    protected $table = 'meet_persons';

    protected $fillable = ['id', 'name', 'sex', 'phone', 'paper_type', 'paper', 'add_uid'];
    

    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }
}